//
//  smallCollectionViewCell.m
//  试验品
//
//  Created by romana on 16/5/19.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "smallCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@implementation smallCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        [self createData];
    }
    return self;

}

-(void)createData{

    self.myImageView = [[UIImageView alloc] initWithFrame:self.contentView.frame];
//    self.myImageView.backgroundColor = [UIColor yellowColor];
    [self.contentView addSubview:self.myImageView];
    
//
    

}

//-(void)layoutSubviews{
//
//    [super layoutSubviews];
//    
//    self.myImageView.frame = self.contentView.frame;
//    
//
//}


-(void)setSeModel:(SecondModel *)seModel{

    _seModel = seModel;
    [self.myImageView sd_setImageWithURL:[NSURL URLWithString:_seModel.pic]];



}

@end
